﻿<Window x:Class="ReportCriteriaForConsultants"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Reports" Height="900" Width="1025" Background="White" ScrollViewer.VerticalScrollBarVisibility="Auto" 
    xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" WindowStartupLocation="CenterScreen" WindowState="Maximized" WindowStyle="ToolWindow">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="114*" />
            <RowDefinition Height="786*" />
        </Grid.RowDefinitions>
        <Label Height="36" HorizontalAlignment="Left" Margin="12,26,0,0" Name="Label1" VerticalAlignment="Top" Width="120" FontSize="16" Grid.Row="1">CRM Reports</Label>
        <Button Height="23" HorizontalAlignment="Left" Margin="12,68,0,0" Name="btnReport" VerticalAlignment="Top" Width="75" Grid.Row="1">Reports</Button>
        <telerik:RadGridView HorizontalAlignment="Left" Margin="12,97,0,52.217" Name="lstReports" Width="333" Grid.Row="1">
        </telerik:RadGridView>
        <!--<ListView HorizontalAlignment="Left" Height="247"  Margin="12,97,0,0" Name="lstReports" Width="333" Grid.Row="1" VerticalAlignment="Top">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <DockPanel >
                        <Image  Name="Image2" Source="/graphics/redball.gif"  Stretch="Fill" />
                        <TextBlock TextWrapping="WrapWithOverflow" Margin="2,0,2,0" Text="{Binding Path=LogIdentifier}" VerticalAlignment="Center"  FontSize="14"  />
                        <TextBlock Name="LinkButton1"  Text="{Binding Path=LogIdentifier}"  />
                        <CheckBox  Name="chkDate" Content ="{Binding Path=LogIdentifier}"  Visibility ="Hidden" />
                        <CheckBox  Name="chkProd" Content ="{Binding Path=LogIdentifier}" Visibility="Hidden" />
                        <CheckBox  Name="chkCon" Content ="{Binding Path=LogIdentifier}" Visibility="Hidden" />
                        <CheckBox  Name="chkClientType" Content ="{Binding Path=LogIdentifier}" Visibility="Hidden" />
                        <CheckBox  Name="chkSLA" Content ="{Binding Path=LogIdentifier}" Visibility="Hidden" />
                    </DockPanel>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>-->
        
        <GroupBox Grid.Row="1" Header="Date Selection" Height="108" Margin="466,36,188,0" Name="grpDates" VerticalAlignment="Top" FontSize="12" BorderBrush="Black" BorderThickness="1">
            <Grid>
                <Label Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="Label2" VerticalAlignment="Top" Width="51">Range :</Label>
                <Label Height="28" HorizontalAlignment="Left" Margin="10,0,0,12" Name="LabelStart" VerticalAlignment="Bottom" Width="51">Start :</Label>
                <Label Height="28" HorizontalAlignment="Right" Margin="0,0,119,12" Name="LabelEnd" VerticalAlignment="Bottom" Width="51">End :</Label>
                <my:DatePicker Height="25" Margin="67,0,177,15" Name="txtDateFrom" VerticalAlignment="Bottom" />
                <my:DatePicker Height="24.517" HorizontalAlignment="Right" Margin="0,0,15,16" Name="txtDateTo" VerticalAlignment="Bottom" Width="115" />
                <ComboBox Height="22.517" Margin="67,14,177,0" Name="drpDateRange" VerticalAlignment="Top" />
            </Grid>
        </GroupBox>
        <GroupBox Grid.Row="1" Header="Consultants" Height="132" Margin="466,150,188,0" Name="grpConsultants" VerticalAlignment="Top" FontSize="12" BorderThickness="1" BorderBrush="Black">
            <Grid>
                <Label Height="28" HorizontalAlignment="Left" Margin="10,0,0,9" Name="litConsult" VerticalAlignment="Bottom" Width="51">Name :</Label>
                <ComboBox Height="22.517" Margin="96,0,119,10" Name="drpConsult" VerticalAlignment="Bottom" />
                <Label HorizontalAlignment="Left" Margin="10,0,0,8" Name="litDepart" Width="62" Height="27.517" VerticalAlignment="Bottom">Branch :</Label>
                <ComboBox Margin="96,0,119,9" Name="drpDepart" Height="22.517" VerticalAlignment="Bottom" />
                <GroupBox Header=" " Margin="0,-4,0,39" Name="GroupBox3" HorizontalAlignment="Left" Width="161" BorderBrush="White">
                    <Grid>
                        <RadioButton Height="16" Margin="10,-1,64,0" Name="radAll" VerticalAlignment="Top">All</RadioButton>
                        <RadioButton Margin="10,21,64,19" Name="radConsultant">Consultant</RadioButton>
                        <RadioButton Height="15.517" Margin="10,0,64,-1" Name="radBranch" VerticalAlignment="Bottom">Branch</RadioButton>
                    </Grid>
                </GroupBox>
                <GroupBox Header=" " HorizontalAlignment="Right" Margin="0,-5,6,37" Name="GroupBox4" Width="143" BorderBrush="White">
                    <Grid>
                        <RadioButton Margin="10,23,46,20" Name="radSoldBy">Sold By</RadioButton>
                        <RadioButton Height="15.517" Margin="10,0,31,0" Name="radCaseWorker" VerticalAlignment="Bottom">Caseworker</RadioButton>
                        <Label FontSize="10" Margin="5,-6,-14,0" Name="Label5" Height="26.033" VerticalAlignment="Top">Consultant's Role</Label>
                    </Grid>
                </GroupBox>
                <GroupBox BorderBrush="Black" BorderThickness="1" FontSize="12" Header="Product Selection" Margin="-5,0,-7,-145" Name="grpProducts" Height="131.517" VerticalAlignment="Bottom">
                    <Grid>
                        <GroupBox BorderBrush="White" Header=" " HorizontalAlignment="Left" Margin="0,-4,0,6" Name="GroupBox6" Width="161">
                            <Grid>
                                <RadioButton Height="16" Margin="10,2,64,0" Name="radProdAll" VerticalAlignment="Top">All</RadioButton>
                                <RadioButton Margin="10,24,64,0" Name="radByBranch" Height="15.55" VerticalAlignment="Top">By Branch</RadioButton>
                                <RadioButton Margin="10,44,27,29" Name="radRetiredProducts">Retired Products</RadioButton>
                                <RadioButton Margin="10,0,64,8" Name="radByProductType" Height="15.55" VerticalAlignment="Bottom">By product Type</RadioButton>
                            </Grid>
                        </GroupBox>
                        <GroupBox BorderBrush="White" Header=" " HorizontalAlignment="Right" Margin="0,-5,6,12" Name="GroupBox7" Width="173">
                            <Grid>
                                <Label Height="28" HorizontalAlignment="Left" Margin="2,-2,0,0" Name="lblProductBranch" VerticalAlignment="Top" Width="62">Branch :</Label>
                                <ComboBox Height="22.517" Margin="59,2,-5,0" Name="drpDepart2" VerticalAlignment="Top" />
                                <Label HorizontalAlignment="Left" Margin="2,25,0,31" Name="lblProductType" Width="62">Type :</Label>
                                <ComboBox Margin="59,29,-5,32" Name="lstProductTypes" />
                            </Grid>
                        </GroupBox>
                    </Grid>
                </GroupBox>
            </Grid>
        </GroupBox>
        <Button Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="107.767,67.771,0,0" Name="btnRunReport" VerticalAlignment="Top" Width="94.435">Run Report</Button>
    </Grid>
</Window>
